﻿<%@ Page Title="Quản lý người dùng" Language="C#" MasterPageFile="~/AdminPages/Admin.Master"
    AutoEventWireup="true" CodeBehind="UserAdmin.aspx.cs" Inherits="_1041326_1041339_1041433.AdminPages.UserAdmin" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel runat="server">
        <ContentTemplate>
            <div>
                <table style="width: 100%;" align="center">
                    <tr>
                        <td colspan="3">
                            <h1>
                                Quản lý người dùng</h1>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 37%;" class="label">
                            Họ tên
                        </td>
                        <td style="width: 2%;">
                        </td>
                        <td style="width: 60%;">
                            <asp:TextBox ID="txtHoTen" runat="server" Width="40%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td class="label">
                            Email
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:TextBox ID="txtEmail" runat="server" Width="40%"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td class="label">
                            Quyền
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:RadioButton ID="rbQuanTri" runat="server" Text="Quản trị viên" Checked="True"
                                GroupName="role" Font-Size="Medium" />
                            &nbsp;
                            <asp:RadioButton ID="rbNhanVien" runat="server" Text="Nhân viên" GroupName="role"
                                Font-Size="Medium" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td class="label">
                            Tình trạng
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:RadioButton ID="rbHoatDong" runat="server" Text="Hoạt động" Checked="True" GroupName="trash"
                                Font-Size="Medium" />
                            &nbsp;
                            <asp:RadioButton ID="rbKhongHoatDong" runat="server" Text="Không hoạt động" GroupName="trash"
                                Font-Size="Medium" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:Button ID="btnThemMoi" runat="server" Text="Thêm mới" CssClass="button" />&nbsp;
                            <asp:Button ID="btnCapNhat" runat="server" Text="Cập nhật" CssClass="button" />&nbsp;
                            <asp:Button ID="btnLamLai" runat="server" Text="Làm lại" CssClass="button" OnClick="btnLamLai_Click" />&nbsp;
                            <asp:Button ID="btnHuy" runat="server" Text="Hủy" CssClass="button" OnClick="btnHuy_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                        </td>
                        <td>
                            <asp:Label ID="lbThongBao" runat="server" Text="Label" Font-Bold="True" ForeColor="Red"
                                Font-Size="13px"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" align="center">
                            <asp:GridView ID="gvUser" runat="server" BackColor="White" BorderColor="#999999"
                                BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical" OnPageIndexChanging="gvUser_PageIndexChanging"
                                OnSelectedIndexChanged="gvUser_SelectedIndexChanged" AutoGenerateColumns="False"
                                DataKeyNames="MaNguoiDung" OnRowDeleting="gvUser_RowDeleting">
                                <AlternatingRowStyle BackColor="#DCDCDC" />
                                <Columns>
                                    <asp:BoundField DataField="MaNguoiDung" HeaderText="Mã người dùng">
                                        <ItemStyle Width="100px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Ten" HeaderText="Họ tên">
                                        <HeaderStyle Width="180px" />
                                        <ItemStyle Height="25px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Email" HeaderText="Email">
                                        <ItemStyle Width="200px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Quyen" HeaderText="Quyền">
                                        <ItemStyle Width="150px" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="TinhTrang" HeaderText="Tình trạng">
                                        <ItemStyle Width="150px" />
                                    </asp:BoundField>
                                    <asp:CommandField HeaderText="Chức năng" ShowSelectButton="True" 
                                        SelectText="Chọn">
                                        <ItemStyle Width="100px" />
                                    </asp:CommandField>
                                    <asp:CommandField ShowDeleteButton="True" HeaderText="Xóa/Phục hồi" 
                                        DeleteText="Xóa">
                                        <ItemStyle Width="100px" />
                                    </asp:CommandField>
                                </Columns>
                                <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                                <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                                <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                                <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                                <SortedAscendingCellStyle BackColor="#F1F1F1" />
                                <SortedAscendingHeaderStyle BackColor="#0000A9" />
                                <SortedDescendingCellStyle BackColor="#CAC9C9" />
                                <SortedDescendingHeaderStyle BackColor="#000065" />
                            </asp:GridView>
                        </td>
                    </tr>
                </table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
